@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --accent-color: #ed5564;
  --bg-color: #23374a;
  --white-color: #fff;
  --grey-color: #696969;
  --black: #000;
  --bg-dark-red: #080000;
  --bg-dark-green: #2a4545;
  --green-color: #008000;
  --yellow-color: #f4a900;
  --red-color: #b00000;
  --light-black: rgba(0, 0, 0, 0.3);
}

body {
  background-color: var(--bg-color);
  background-image: url("../../public/background.svg");
  color: var(--white-color);
  font-family: var(--roboto-condensed, sans-serif);
  font-size: 18px;
  font-weight: 400;
}

@layer utilities {
  .animation {
    outline: transparent;
    padding: 3px;
    border-radius: 4px;
    transition: color 0.3s, opacity 0.3s, text-decoration-color 0.3s,
      box-shadow 0.3s, transform 0.3s, background-color 0.3s;

    &:focus {
      box-shadow: 0 0 0 2px var(--accent-color);
      border-radius: 4px;
    }

    &:active {
      opacity: 0.7;
      box-shadow: 0 0 0 2px var(--accent-color);
    }

    &:hover {
      color: var(--accent-color);
    }
  }
}

@keyframes like {
  0% {
    transform: scale(1);
  }
  90% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.1);
  }
}

.like-active {
  animation: like 0.5s 1;
  color: var(--accent-color);
}

.swiper.main-swiper {
  z-index: 0;
}

.slider-game-page {
  img {
    object-fit: cover;
    height: 115px;
    width: 100%;
  }

  .swiper-slide-thumb-active {
    border: 1px solid #ed5564;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 20px;
    color: var(--accent-color);
  }
}

.thumbs-slider-game-page {
  .swiper-pagination-bullet {
    background-color: var(--accent-color);
  }

  img {
    object-fit: cover;
    height: auto;
  }
}

.swiper.main-swiper {
  margin-left: 0;
  margin-right: 30px;
}

@media (max-width: 640px) {
  .swiper.main-swiper {
    margin-right: 0;
  }
}
